include $(CLEAR_VARS)

MODULE_SRC := $(LOCAL_PATH)/../../src/Base/src

ifeq ($(CUSTOM_CAS),true)
# これだけarmモードでコンパイルする
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../include $(LOCAL_PATH)/../../src
LOCAL_ARM_MODE := arm
LOCAL_MODULE := atomic-cas
LOCAL_SRC_FILES := ../../src/Base/src/InterlockedCompareExchange.cpp
include $(BUILD_STATIC_LIBRARY)
endif

# base 
include $(CLEAR_VARS)

LOCAL_MODULE := ntengine_base
LOCAL_SRC_FILES := \
../../src/Base/src/MemoryManager.cpp \
../../src/Base/src/halt.cpp \
../../src/Base/src/Conversion.cpp \
../../src/Base/src/OStringStream.cpp \
../../src/Base/src/DebugStream.cpp \
../../src/Base/src/RefString.cpp \
../../src/Base/src/IBinaryStream.cpp \
../../src/Base/src/PrimeNumber.cpp \
../../src/Base/src/Compressor.cpp \
../../src/Base/src/SharedPtr.cpp 

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../include $(LOCAL_PATH)/../../src
ifeq ($(CUSTOM_CAS),true)
LOCAL_STATIC_LIBRARIES := atomic-cas
endif
LOCAL_EXPORT_LDLIBS := -llog -landroid

include $(BUILD_STATIC_LIBRARY)